<?php
/**
 * Created by PhpStorm.
 * User: KaBuDa
 * Date: 2020/9/12
 * Time: 14:56
 */
namespace app\api\validate;
use think\Validate;

class SupportValidate extends Validate
{
    protected $rule=[
        'id'=>'require',
        'money'=>'require|number|gt:0',
        'type'=>'require'
    ];

    protected $message=[
        'money.require' =>'金额不能为空',
        'money.number'  =>'金额只能是数字',
        'money.gt'      =>'金额必须大于0'
    ];

    protected $scene=[
        'rechargeAmount'=>['money','type'],
        'support'       =>['money','id']
    ];
}